﻿using MathNet.Numerics.LinearAlgebra.Double;
using System.Runtime.CompilerServices;
namespace PBDsim;

internal class XPBD
{
    TetrahedronMesh mesh;

    public XPBD()
    {
        var translate = DenseVector.OfArray([5, 0, 0]);
        var scale = DenseVector.OfArray([10.0, 1.5, 1.5]);
        var rotation = DenseMatrix.CreateIdentity(3);
        mesh = TetrahedronMesh.MakeTetrahedron(30, 5, 5, translate, rotation, scale);


        mesh.Step(0.001, DenseVector.OfArray([0, 0, 0]));
    }


}
